package com.etone.smartAudit.controller;

import com.etone.smartAudit.service.AuditExceptionSpecialService;
import com.etone.smartAudit.vo.PagerVO;
import com.etone.smartAudit.vo.auditExceptionSpecial.AuditExceptionSpecialSimpleVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: sovy
 * @date: 2020/9/24
 * @description:
 */
@RestController
@AllArgsConstructor
@Api(tags = "持续审计专题管理", value = "AuditExceptionSpecialController")
public class AuditExceptionSpecialController {

    private AuditExceptionSpecialService auditExceptionSpecialService;

    @ApiOperation(value = "专题基本信息列表《完》")
    @GetMapping("/auditExceptionSpecial/simple")
    public PagerVO<AuditExceptionSpecialSimpleVO> listSimple(
            @ApiParam(value = "10025广东，0集团") @RequestParam(required = false) Integer provinceId,
            @ApiParam(value = "当前页") @RequestParam(required = false, defaultValue = "1") int page,
            @ApiParam(value = "每页显示数量") @RequestParam(required = false, defaultValue = "10") int pageSize
    ) {
        return auditExceptionSpecialService.listSimple(provinceId, page, pageSize);
    }
}
